﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AIController : MonoBehaviour {
    public float rayCastDistance = 5.0f;
    public float rayCastIntervalTime = 1.0f;
    public bool canTurnRight = true;
    public bool isTurnRight = true;
    public bool isInTurnState = false;
    private bool isRayCastCooling = false;
    private BaseController baseController;
	// Use this for initialization
	void Start () {
        baseController = GetComponent<BaseController>();
    }
	
	// Update is called once per frame
	void Update () {
		
	}

    public void Jump()
    {
        baseController.Jump();
        BaseClass.Messenger.Broadcast("JumpAni");
    }

    public void TurnLeft()
    {
        baseController.TurnLeft();
    }

    public void TurnRight()
    {
        baseController.TurnRight();
    }
}
